package com.mzj.saas.mservice.sys.controller;

import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.announcement.vo.AnnouncementVO;
import com.mzj.saas.mservice.sys.service.FeedbackService;
import com.mzj.saas.mservice.sys.vo.FeedbackVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 意见反馈
 */
@Controller
@RequestMapping("/feedback")
@Api(tags = "意见反馈接口")
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    /**
     * 新增意见反馈
     *
     * @param vo
     * @return
     */
    @PostMapping(value = "/addFeedback")
    @ResponseBody
    @ApiOperation("新增意见反馈")
    public ResultBean<Object> addFeedback(@RequestHeader String accessToken,
                                          @RequestBody @ApiParam(name = "vo",value = "意见反馈实体类") FeedbackVo vo) {
        return feedbackService.save(accessToken, vo);
    }
}
